import request from '@/utils/request'

// 查询事件类型列表
export function listEventType(query) {
  return request({
    url: '/house_sale/EventType/list',
    method: 'get',
    params: query
  })
}

// 查询事件类型详细
export function getEventType(eventtypeid) {
  return request({
    url: '/house_sale/EventType/' + eventtypeid,
    method: 'get'
  })
}

// 新增事件类型
export function addEventType(data) {
  return request({
    url: '/house_sale/EventType',
    method: 'post',
    data: data
  })
}

// 修改事件类型
export function updateEventType(data) {
  return request({
    url: '/house_sale/EventType',
    method: 'put',
    data: data
  })
}

// 删除事件类型
export function delEventType(eventtypeid) {
  return request({
    url: '/house_sale/EventType/' + eventtypeid,
    method: 'delete'
  })
}
